// ****************************************************************************
//
// Logic 2: First room
//
// ****************************************************************************

#include "defines.txt"

if (new_room) {
  load.pic(room_no);
  draw.pic(room_no);
  discard.pic(room_no);
  set.horizon(37);


  if ((prev_room_no == 1 ||    // just come from intro screen
      prev_room_no == 0)) {    // or just started game
    position(ego,120,140);
    status.line.on();
    accept.input();
  }
  draw(ego);
  show.pic();
}

if (said("look")) {
  print("you are in front of the Biri studio.");
}
if (said("open","door")) {
  print("It's closed today.");
}
if (ego_edge_code == right_edge) {    // ego touching right edge of screen
  new.room(3);
}
if (has("spell book")) {
  if (said("open","book")) {
    print("The spells are as follows-.");
    print("DHOOA: Makes everyone go blind, except you.");
    print("KALI: You can open any door with this one.");
    print("PINKU: You will know the answer to any questions if you use this.");
    print("That's all.");
  }
}
if (has("spell book")) {
  if (said("dhooa")) {
    print("No need of using this now.");
  }
}
if (has("spell book")) {
  if (said("Kali")) {
    print("No need of using this now.");
  }
}
if (has("spell book")) {
  if (said("pinku")) {
    print("No need of using this now.");
  }
}
return();